﻿﻿<template>
    <el-card class="form-container">
        <el-form :model="goodsCommentDetail"   label-width="100px">
                            <el-form-item label="" prop="id">
                    <el-input v-model="goodsCommentDetail.id"  disabled="disabled"></el-input>
                </el-form-item>
                            <el-form-item label="评论内容" prop="commentContent">
                    <el-input v-model="goodsCommentDetail.commentContent"  disabled="disabled"></el-input>
                </el-form-item>
                            <el-form-item label="用户编号" prop="userCode">
                    <el-input v-model="goodsCommentDetail.userCode"  disabled="disabled"></el-input>
                </el-form-item>
                            <el-form-item label="是否包含图片 1.是 2.否" prop="hasPicture">
                    <el-input v-model="goodsCommentDetail.hasPicture"  disabled="disabled"></el-input>
                </el-form-item>
                            <el-form-item label="图片地址" prop="picUrls">
                    <el-input v-model="goodsCommentDetail.picUrls"  disabled="disabled"></el-input>
                </el-form-item>
                            <el-form-item label="评分" prop="commentScore">
                    <el-input v-model="goodsCommentDetail.commentScore"  disabled="disabled"></el-input>
                </el-form-item>
                            <el-form-item label="评论类型 1.商品" prop="commentType">
                    <el-input v-model="goodsCommentDetail.commentType"  disabled="disabled"></el-input>
                </el-form-item>
                            <el-form-item label="评论时间" prop="createTime">
                    <el-input v-model="goodsCommentDetail.createTime"  disabled="disabled"></el-input>
                </el-form-item>
                            <el-form-item label="回复时间" prop="replyTime">
                    <el-input v-model="goodsCommentDetail.replyTime"  disabled="disabled"></el-input>
                </el-form-item>
                            <el-form-item label="回复内容" prop="merchantReply">
                    <el-input v-model="goodsCommentDetail.merchantReply"  disabled="disabled"></el-input>
                </el-form-item>
                        <el-form-item>
                <el-button @click="close">关闭</el-button>
            </el-form-item>
        </el-form>
    </el-card>
</template>

<script>
    import { findGoodsCommentDetail } from '@/api/admin/goodsComment'
    export default{
        name: 'view-goodsComment',
        data(){
            return {
                goodsCommentDetail: {}
            }
        },
        created() {
            this.view(this.$route.query.id)
        },
        methods:{
            view(val){
                findGoodsCommentDetail(val).then(res => {
                    console.log('查询返回结果',res)
                this.userDetail = res.data.responseData
            })
            },
            close(){
                this.$router.go(-1)
            }
        }
    }
</script>

<style>
</style>
